import request from '@/utils/request'

export function deleteRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/delete',
    method: 'post',
    data: params
  })
}


export function getRankMemberList(params) {
  return request({
    url: process.env.RANK_API + '/rankMember/getList',
    method: 'post',
    data: params
  })
}

export function updateRankMemberLevel(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/updateLevel',
    method: 'post',
    data: params
  })
}

export function publishRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/publish',
    method: 'post',
    data: params
  })
}

export function addRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/add',
    method: 'post',
    data: params
  })
}

export function uploadLocalRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/uploadLocalRankMember',
    method: 'post',
    data: params
  })
}


export function editRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/edit',
    method: 'post',
    data: params
  })
}

export function editBatchRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/editBatch',
    method: 'post',
    data: params
  })
}

export function batchAuditRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/batchAuditRankMember',
    method: 'post',
    data: params
  })
}

export function auditRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/audit',
    method: 'post',
    data: params
  })
}

export function deleteBatchRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/deleteBatch',
    method: 'post',
    data: params
  })
}

export function pushBatchRankMember(params) {
  return request({
    url: process.env.ADMIN_API + '/rankMember/pushBatch',
    method: 'post',
    data: params
  })
}

